home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
201
/
draco
/
drinc
/
hardware
/
cia.g
< prev
next >
Wrap
Text File
|
1995-03-13
|
3KB
|
151 lines
type
CIA_t=struct{
bytecia_ciapra;
[0xff]bytecia_pad0;
bytecia_ciaprb;
[0xff]bytecia_pad1;
bytecia_ciaddra;
[0xff]bytecia_pad2;
bytecia_ciaddrb;
[0xff]bytecia_pad3;
bytecia_ciatalo;
[0xff]bytecia_pad4;
bytecia_ciatahi;
[0xff]bytecia_pad5;
bytecia_ciatblo;
[0xff]bytecia_pad6;
bytecia_ciatbhi;
[0xff]bytecia_pad7;
bytecia_ciatodlow;
[0xff]bytecia_pad8;
bytecia_ciatodmid;
[0xff]bytecia_pad9;
bytecia_ciatodhi;
[0xff]bytecia_pad10;
bytecia_unusedreg;
[0xff]bytecia_pad11;
bytecia_ciasdr;
[0xff]bytecia_pad12;
bytecia_ciaicr;
[0xff]bytecia_pad13;
bytecia_ciacra;
[0xff]bytecia_pad14;
bytecia_ciacrb;
};
CIA_t
CIAA@0xbfe001,
CIAB@0xbfd000;
uint
CIAICRB_TA=0,
CIAICRB_TB=1,
CIAICRB_ALRM=2,
CIAICRB_SP=3,
CIAICRB_FLG=4,
CIAICRB_IR=7,
CIAICRB_SETCLR=7,
CIACRAB_START=0,
CIACRAB_PBON=1,
CIACRAB_OUTMODE =2,
CIACRAB_RUNMODE =3,
CIACRAB_LOAD=4,
CIACRAB_INMODE=5,
CIACRAB_SPMODE=6,
CIACRAB_TODIN=7,
CIACRBB_START=0,
CIACRBB_PBON=1,
CIACRBB_OUTMODE =2,
CIACRBB_RUNMODE =3,
CIACRBB_LOAD=4,
CIACRBB_INMODE0 =5,
CIACRBB_INMODE1 =6,
CIACRBB_ALARM=7,
CIAICRF_TA=1<<CIAICRB_TA,
CIAICRF_TB=1<<CIAICRB_TB,
CIAICRF_ALRM=1<<CIAICRB_ALRM,
CIAICRF_SP=1<<CIAICRB_SP,
CIAICRF_FLG=1<<CIAICRB_FLG,
CIAICRF_IR=1<<CIAICRB_IR,
CIAICRF_SETCLR=1<<CIAICRB_SETCLR,
CIACRAF_START=1<<CIACRAB_START,
CIACRAF_PBON=1<<CIACRAB_PBON,
CIACRAF_OUTMODE =1<<CIACRAB_OUTMODE,
CIACRAF_RUNMODE =1<<CIACRAB_RUNMODE,
CIACRAF_LOAD=1<<CIACRAB_LOAD,
CIACRAF_INMODE=1<<CIACRAB_INMODE,
CIACRAF_SPMODE=1<<CIACRAB_SPMODE,
CIACRAF_TODIN=1<<CIACRAB_TODIN,
CIACRBF_START=1<<CIACRBB_START,
CIACRBF_PBON=1<<CIACRBB_PBON,
CIACRBF_OUTMODE =1<<CIACRBB_OUTMODE,
CIACRBF_RUNMODE =1<<CIACRBB_RUNMODE,
CIACRBF_LOAD=1<<CIACRBB_LOAD,
CIACRBF_INMODE0 =1<<CIACRBB_INMODE0,
CIACRBF_INMODE1 =1<<CIACRBB_INMODE1,
CIACRBF_ALARM=1<<CIACRBB_ALARM,
CIACRBF_IN_PHI2 =0,
CIACRBF_IN_CNT=CIACRBF_INMODE0,
CIACRBF_IN_TA=CIACRBF_INMODE1,
CIACRBF_IN_CNT_TA=CIACRBF_INMODE0|CIACRBF_INMODE1,
CIAB_GAMEPORT1=7,
CIAB_GAMEPORT0=6,
CIAB_DSKRDY=5,
CIAB_DSKTRACK0=4,
CIAB_DSKPROT=3,
CIAB_DSKCHANGE=2,
CIAB_LED=1,
CIAB_OVERLAY=0,
CIAB_COMDTR=7,
CIAB_COMRTS=6,
CIAB_COMCD=5,
CIAB_COMCTS=4,
CIAB_COMDSR=3,
CIAB_PRTRSEL=2,
CIAB_PRTRPOUT=1,
CIAB_PRTRBUSY=0,
CIAB_DSKMOTOR=7,
CIAB_DSKSEL3=6,
CIAB_DSKSEL2=5,
CIAB_DSKSEL1=4,
CIAB_DSKSEL0=3,
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